package com.bs.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 订单明细表（订单关联的商品）
 *
 * @author 琪
 * @since 2025/5/7 19:42
 */
@Data
@ApiModel("订单明细（订单关联商品）")
@TableName("bs_order_item")
public class OrderItem {

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("商品id")
    private String itemId;

    @ApiModelProperty("商品数量")
    private Integer quantity;

    @ApiModelProperty("本商品总价格")
    private Double price;

    @ApiModelProperty("创建时间")
    @JsonIgnore
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonIgnore
    private Date updateTime;
}
